

'''
    需求:关联

'''



import  requests
import hashlib
import pickle
import re
import time
from server_info import register,login
from Util import *





#testcase_path= 'data.txt'
#log_path= 'log.log'

count= 0
for line in get_testcase_data(test_data_path):
    line= pre_handle_data(line)
    print(1,line)
    url,test_data,http_method,assert_word,correlate_exp= line.split('||')
    url=eval(url)
    print(1,url,test_data,http_method,assert_word)
    start_time= time.time()
    req= send_request(url,test_data,http_method)
    end_time= time.time()
    #print(9,req,req.text)
    post_handle_data(correlate_exp,req.text)
    print(global_data)
    count+=1
    if count==2:break

